package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.AdminLoginRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AdminLoginRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AdminLoginRecord record);

    int insertSelective(AdminLoginRecord record);

    AdminLoginRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AdminLoginRecord record);

    int updateByPrimaryKey(AdminLoginRecord record);

    List<Map<String,Object>> getAdminLoginRecordList(@Param("adminLoginName") String adminLoginName, 
                                                     @Param("start") Integer start, 
                                                     @Param("end") Integer size, 
                                                     @Param("startTime") String startTime, 
                                                     @Param("endTime") String endTime);

    Integer getAdminLoginRecordAmount(@Param("adminLoginName") String adminLoginName, 
                                      @Param("startTime") String startTime, 
                                      @Param("endTime") String endTime);
}